<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> 
<meta name="format-detection" content="telephone=no">
<title>代记账管理公司列表 - {$cwgl_config['webtitle']}</title>
<link href="{$templateurl}/css/css.css" rel="stylesheet" type="text/css">
<link href="{$templateurl}/css/common.css" rel="stylesheet" type="text/css">
</head>
<body >
<!--分页-->
<link href="./resource/css/bootstrap.min.css" rel="stylesheet">
<!--分页-->
<style>
	.form-control_pp{width:180px;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}
</style>
<div class="head">
	<div class="content-top clearFix">
    <a href="{php echo $this->createMobileUrl('staff_index')}">
	 <em class="return"><</em>
	 <span class="fanhui">返回</span>
	</a>
	<!--搜索 start-->
	<div style="float:right;">
	<form action="./index.php" method="get" class="form-inline" role="form">
	<input type="hidden" name="i" value="{$_GPC['i']}">
	<input type="hidden" name="c" value="{$_GPC['c']}">
	<input type="hidden" name="do" value="{$_GPC['do']}">
	<input type="hidden" name="m" value="{$_GPC['m']}">
	<input type="txt" class="form-control_pp" name="keyword" value="{$_GPC['keyword']}" placeholder="请输入关键字">
	<input type="submit" class="btn btn-default" value="搜索">
	</form>
	</div>
	<!--搜索 end-->
   </div>
</div>
	
<div id="content" >
  
   <div class="k-manage-bd">
      <div class="titbox">
	    <h3 class="htit">我管理的公司</h3>
	  </div>
	  <div class="k-manage-list clearFix">
	    <ul>
		  {loop $list $key $value}
		  <li>
		    <div class="info">
			   <p>
			     <em>公司名称：</em>
				 <span>{$value['compname']}</span>
			   </p>
               <p>
			     <em>联系人：</em>
				 <span>{$value['name']}</span>
			   </p>
               <P>
			     <em>联系电话：</em>
				 <span>{$value['phone']}</span>
			   </P>
			   <P>
			     <em>服务费：</em>
				 <span><font color="#FF6600">{if $value['payfees']>0}{$value['payfees']}{else}{$cwgl_config['month_money']}{/if}</font>&nbsp;元/月（默认）</span>
			   </P>
			   <P>
			     <em>状态：</em>
				 <span>
				 	{if $newtimes < $value['deadline']}<font color="#006600">服务中...</font>
					{else}<font color="#CC0000">服务已到期</font>
					{/if}
				 </span>
			   </P>
		    </div>
		    <a href="{php echo $this->createMobileUrl('staff_usershow', array('id' => $value[id]))}" class="look-btn">查看详情</a>
			<a href="{php echo $this->createMobileUrl('staff_paycost', array('uid' => $value[uid]))}" class="look-btn">欠费管理</a>
			<a href="{php echo $this->createMobileUrl('staff_tallylist', array('uid' => $value[uid]))}" class="look-btn">账目管理</a>
			<a href="{php echo $this->createMobileUrl('staff_tallylist', array('op' => 'add','uid' => $value[uid]))}" class="look-btn">添加账目</a>
		 </li>
		 {/loop}
		</ul>
	  </div>
	  <div style="padding: 0 10px; text-align:center;">
		<style>
			.pagination {margin-top: 0px;}
		</style>
		{$pager}
	  </div>
   </div>
   
</div>

<!--footer star-->
{template 'staff_footer'}
</body>
</html>
